<script setup>
import { ref } from 'vue'

import { Events } from "@wailsio/runtime";
const imgageBase64 = ref()

Events.On('screenShotEvent', (event) => {
  console.log(event)
  imgageBase64.value = 'data:image/jpeg;base64,' + event.data[0]
});

</script>

<template>
  <main>
    <div>
      <img style="display: block;" v-if="imgageBase64" :src="imgageBase64" />
    </div>
  </main>
</template>
